﻿using System;
using System.Collections.Generic;
using System.Reflection;

namespace T.FAS.Runtime.Action.Dao
{
    static class DaoServiceExtension
    {
        public static Dictionary<string, PropertyInfo> GetAllColumns<T>(Dictionary<string, PropertyInfo> mapping)
        {
            if (mapping.ContainsKey("MeteDataID"))
                mapping.Remove("MeteDataID");

            if (mapping.ContainsKey("MetaDataCode"))
                mapping.Remove("MetaDataCode");

            if (mapping.ContainsKey("MetaDataName"))
                mapping.Remove("MetaDataName");

            if (mapping.ContainsKey("MetaData"))
                mapping.Remove("MetaData");
            if (mapping.ContainsKey("CurrentVersion"))
                mapping.Remove("CurrentVersion");

            if (mapping.ContainsKey("CompatibleMinVersion"))
                mapping.Remove("CompatibleMinVersion");

            if (mapping.ContainsKey("EngineVersion"))
                mapping.Remove("EngineVersion");           

            return mapping;
            //fix: 冗余代码删除 2024.3.28
        }
    }
}
